package com.tanhua.common.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 问卷表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_questionnaire")
public class Questionnaire extends BasePojo {
    private Long id;
    private Integer level;     //问卷等级:1初级 2中级 3 高级
    private String name;       //问卷名称
    private String cover;      //问卷封面图
    private Byte star;         //题目星级:2,3,5星级
    @TableField(fill = FieldFill.INSERT)  //MP自动填充
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;
}
